public class Demo6 {
    public static void main(String[] args) throws InterruptedException {
        Thread thread = new Thread(() -> {
           //线程操作
        });

        thread.join();
    }
}
